package bingfa;

import bingfa.entity.StatusEnum;
import http.ByteAndHex;

/**
 * Created by Administrator on 2015/12/29.
 */
public class test_04 {

    public static void main(String[] args) throws Exception{
//        for (StatusEnum statusEnum : StatusEnum.values()){
//            System.out.println(statusEnum.name());
//            System.out.println(statusEnum.getKey());
//        }

//        StatusEnum statusEnum = StatusEnum.ORDER_VALUE;
//
//        System.out.println(statusEnum.name());
//        System.out.println(statusEnum.getName());
//        System.out.println(statusEnum.getKey());

//        System.out.println(StatusEnum.ORDER_EVALUATE);
        String test = "ef02050200006978000059d800007148000052080041687474703a2f2f696e6d79636172732e6968656e677469616e2e746f702f696e73706563742f776562ff02";
//        int length = 255;
//        String string = String.valueOf(length);
//        if (string.length()<4){
//            System.out.println(test.length());
//            string="0"+string;
//        }
//        System.out.println(Integer.valueOf(string,16));
        byte[] bytes = ByteAndHex.hexStringToBytes(test);
//        String result = ByteAndHex.bytesToHexString(bytes);

        System.out.println(ByteAndHex.bytesToHexString(bytes));


    }

}
